//
//  MyImageView.h
//  LimitFree
//
//  Created by Xuan on 14-5-2.
//  Copyright (c) 2014年 Xuan. All rights reserved.
//

#import <UIKit/UIKit.h>

@class MyImageView;
@protocol MyImageViewDelegate <NSObject>
//传值imageView,传值button
-(void)myImageView:(MyImageView *)myImageView deleteButton:(UIButton *)deleteButton;

@end

@interface MyImageView : UIImageView
//记录图片的索引
@property (nonatomic)NSInteger index;
@property (nonatomic,strong) NSString *nameStr;
@property (nonatomic,strong) NSString *timeStr;
@property (nonatomic,strong) UILabel *titleLabel;
@property(nonatomic,strong)UIButton * button;
@property(nonatomic,strong)NSString * urlStr;
//
@property(nonatomic,assign)id<MyImageViewDelegate>delegate;

//增加点击事件
- (void)addTarget:(id)target action:(SEL)action;
//

-(void)setDeleteButtonHidden:(BOOL)hidden;
//
- (void)setTitleWithStr:(NSString *)str;
@end
